package cn.life.common.support.exception;


import cn.life.common.entity.model.CMessageCode;
/**
 * @Description:    自定义异常
 *
 * @Author 李佳明
 * @Date 2018/6/24 0024 13:03
 */
public class CException extends RuntimeException {

    private String code;

    public CException(String code, String message) {
        super(message);
        this.code = code;
    }

    public CException(String message) {
        super(message);
        this.code = CMessageCode.FAIL;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}